<?php //pack11_class

class Setting {

    public $id=0;
    public $system="undefined";
    public $type=0;
    public $value=null;
    public $sessionUse=true;
    
	public function __toString() {
		return (strlen($this->value)>0)? $this->system."(".$this->value.")":$this->system;
	}

        public function setValue($value) {
            if(is_numeric($value)) $this->value=$value;
            if($this->sessionUse) $_SESSION[$this->system]=$value;
            if($this->system=="showPrice"){
                ObjectsManager::$showPrice=($this->value==0)? false:true;
            }
        }
	
}

?>